

export default class {
    turnListPage = async () => {
        let page = this.models.dmPageM.get('page');

        // if (page === 'detail') {
        //     this.actions.modelListA.uploadModel();
        // }

        this.actions.dmPageA.turnPage('list');

        this.models.modelListM.set({
            editInfoModel: ''
        });
    }

    turnInfoPage = () => {
        this.models.modelInfoM.set({
            formData: {
                name: '',
                keyName: '',
                detail: ''
            }
        });
        this.actions.dmPageA.turnPage('info');
    }

    saveProps = () => {
        this.actions.modelListA.uploadModel();
    }
}